/*
    This file is part of Darwin.

    Darwin is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    Foobar is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Foobar; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    
    Darwin uses GALib
    Copyright (c) 1995-1996 Massachusetts Institute of Technology (MIT)
    Copyright (c) 1996-2005 Matthew Wall
    All rights reserved.
    
    Darwin uses ConfigFile
    Copyright (c) 2004 Richard J. Wagner
     
    Darwin, a Genetic Algorithm to solve Timetabling problem
    Copyright (c) 2006 Christian S. Perone
*/  

#if !defined(__OPTIONS_H)
#define __OPTIONS_H

#include "general.h"

#include "configfile.h"
#include "dbanalysis.h"

class GlobalOptions
{
public:
     GlobalOptions(std::string filename);
     ~GlobalOptions();
     
public:
     void Parse(void);

private:
     ConfigFile *mConfigHandler;    
     
public:
     /// MySQL Parameters
     std::string mysql_hostname;
     std::string mysql_username;
     std::string mysql_password;
     std::string mysql_database;
     
     /// Genetic Algorithm Parameters
     unsigned int   ga_random_seed;
     float          ga_mutation;
     float          ga_crossover;
     int            ga_generations;
     int            ga_popsize;
     int            ga_showstats;
     int            ga_convergence;
     
     /// Timetabling Parameters
     int            timetabling_curso;
     std::string    timetabling_anosemestre;
     int	    timetabling_niveis;
};


#endif
